Adding VeryHigh Overview Display Option#4768
Conversation
|
Note, this is an updated version of PR #3678 |
… installs use the same thresholds and colors as the existing (this is important because the low_mark color has been changed to yellow instead of previously, red.)
|
@olorinmaia, @Philoul @koelewij |
|
To my opinion this is a change with minimal impact. If users don't want the extra range, they can set the limits to such a value that they still have the old behavior. |
# Conflicts: # wear/src/main/kotlin/app/aaps/wear/watchfaces/CustomWatchface.kt
|
@koelewij Thank you very much for your comment! @olorinmaia , @Philoul @koelewij Sorry to ping again. I am just wondering that you are ok with this PR (as you helped with/commented) the original PR #3678 already. kind regards, |
|
@vanmegen
I will try to find time to test it to provide you my comments, but not sure very quickly 🥵... |
|
Hi @Philoul, I just realized that I forgot to put screenshots for some additional places where the new UI displays blood sugar values and the combination carbs/insulin dialog kind regards, |
# Conflicts: # plugins/sync/src/main/kotlin/app/aaps/plugins/sync/wear/wearintegration/DataHandlerMobile.kt # workflow/src/main/kotlin/app/aaps/workflow/PrepareBgDataWorker.kt # workflow/src/main/kotlin/app/aaps/workflow/PrepareBucketedDataWorker.kt
|
I tested it on my dev phone, here are my different comments:
Concerning the Very High maximum and default value, it should be the maximum allowed value (I don't remember if it's 380 or 400 mgdl...) By default, if this feature is included, it should be "transparent" for users: they will have enough new things just with the new UI, so I don't think we should add something additional visible. Then those who will want to adjust settings to see very high and Very Low will be able to adjust settings accordingly. |
|
|
Hi @Philoul thank you very much for reviewing the code.
I updated core/keys/src/main/kotlin/app/aaps/core/keys/UnitDoubleKey.kt so that default values for very_high and very_low will result in the existing coloring scheme and boundaries (like, low values are read, high values are yellow if the very_* defaults are not changed.).
I agree that this sees to be a minor issue because the current logic will use the very_high value if it is set to a value that is smaller than the "high" value. As a result, the color/range of very_high will "win", i.e., the result would be what the user expected when setting the very_high config to a given value. (Same behavior for the very_low to "low" behavior).
Looking through code, I found that in the .js look, the boundaries are 39...401, for example in I updated the default to be 401. As a side note, there was a limit in .../core/ui/src/main/kotlin/app/aaps/core/ui/compose/preference/PreferenceSliderWithButtons.kt that limits the number of steps to 200 which is too low in this case and prevented the slider from being drawn. I updated the maximum to 250.
I agree. With the changes, the default behavior is as it is currently, i.e., range values are the same as well as colors for users that did not change the defaults previously. A user must actively change the values to see the additional ranges and coloring. |






This is analog to the nightscout Very High setting which displays bg values higher than a configurable value in a different color.
I did set the default to 400, but it can be set to 240 to be a similar threshold as nightscout uses.
(in the following screenshot red dots mark values higher than 220)

I have added this to the overview settings

And added this to the startup-wizzard

Widgets are updated as well

And watchfaces


